/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: zjc
 * Date: 2022-04-26
 * Time: 22:30
 */
public class project {
    public static void main(String[] args) {
        int cout = 0;
        for (int i = 1; i <= 100; i++) {
            if (i % 10 == 9){
                cout++;
            }
            if(i / 10 == 9) {
                cout++;
            }
        }
        System.out.println(cout);
    }
}
